home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / tclMotif-1.4 / programs / prog15 < prev    next >
Text File  |  1995-06-29  |  305b  |  16 lines

  1. # a Motif bug: getValues -command always returns an empty string
  2. # why? I dunno
  3. xtAppInitialize -class Program
  4.  
  5. xmCommand .command managed
  6. .command commandEnteredCallback print_command
  7.  
  8. proc print_command {} {
  9.     .command getValues -command c
  10.     puts stdout "Command: $c"
  11. }
  12.  
  13. . realizeWidget
  14.  
  15. . mainLoop
  16.